﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_TaxRule
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_TaxRule
    {
        private int? _Tax_id;
        private int? _Property_id;
        private string _Amount;
        private Decimal? _Amount1;
        private string _Aunit;
        private string _Basis;
        private string _TypeCode;
        private string _Description;
        private string _FeeType;
        private string _Spare;
        private string _Code;
        private string _Method;
        private string _Application;
        private int? _StackOrder;
        private int? _languagetype;
        private int? _userid;
        private DateTime? _updatetime;



        public HCRS_TaxRule()
        { }


        public HCRS_TaxRule(DataRow dr)
        {
            if (dr != null)
            {
                if (dr["Tax_id"].ToString() != "") _Tax_id = Convert.ToInt32(dr["Tax_id"].ToString());
                if (dr["Property_id"].ToString() != "") _Property_id = Convert.ToInt32(dr["Property_id"].ToString());
                _Amount = dr["Amount"].ToString();
                if (dr["Amount1"].ToString() != "") _Amount1 = Convert.ToDecimal(dr["Amount1"].ToString());
                _Aunit = dr["Aunit"].ToString();
                _Basis = dr["Basis"].ToString();
                _TypeCode = dr["TypeCode"].ToString();
                _Description = dr["Description"].ToString();
                _FeeType = dr["FeeType"].ToString();
                _Spare = dr["Spare"].ToString();
                _Code = dr["Code"].ToString();
                _Method = dr["Method"].ToString();
                _Application = dr["Application"].ToString();
                if (dr["StackOrder"].ToString() != "") _StackOrder = Convert.ToInt32(dr["StackOrder"].ToString());
                if (dr["languagetype"].ToString() != "") _languagetype = Convert.ToInt32(dr["languagetype"].ToString());
                if (dr["userid"].ToString() != "") _userid = Convert.ToInt32(dr["userid"].ToString());
                if (dr["updatetime"].ToString() != "") _updatetime = Convert.ToDateTime(dr["updatetime"].ToString());


            }
        }



        #region 公共属性


        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Tax_id", "pk")]
        public int? id
        {
            get { return _Tax_id; }
            set { _Tax_id = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Property_id")]
        public int? Property_id
        {
            get { return _Property_id; }
            set { _Property_id = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Amount")]
        public string Amount
        {
            get { return _Amount; }
            set { _Amount = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Amount1")]
        public Decimal? Amount1
        {
            get { return _Amount1; }
            set { _Amount1 = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Aunit")]
        public string Aunit
        {
            get { return _Aunit; }
            set { _Aunit = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Basis")]
        public string Basis
        {
            get { return _Basis; }
            set { _Basis = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("TypeCode")]
        public string TypeCode
        {
            get { return _TypeCode; }
            set { _TypeCode = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Description")]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("FeeType")]
        public string FeeType
        {
            get { return _FeeType; }
            set { _FeeType = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Spare")]
        public string Spare
        {
            get { return _Spare; }
            set { _Spare = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Code")]
        public string Code
        {
            get { return _Code; }
            set { _Code = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Method")]
        public string Method
        {
            get { return _Method; }
            set { _Method = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("Application")]
        public string Application
        {
            get { return _Application; }
            set { _Application = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("StackOrder")]
        public int? StackOrder
        {
            get { return _StackOrder; }
            set { _StackOrder = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("languagetype")]
        public int? languagetype
        {
            get { return _languagetype; }
            set { _languagetype = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("userid")]
        public int? userid
        {
            get { return _userid; }
            set { _userid = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataFieldAttribute("updatetime")]
        public DateTime? updatetime
        {
            get { return _updatetime; }
            set { _updatetime = value; }
        }



        #endregion


    }
    #endregion
}
